package com.waigoulin.test.service;

import com.waigoulin.service.ILoginService;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;

/**
 * @FileName LoginServiceTest
 * @Description 登录接口服务测试
 * @Author waigoulin
 * @date 2025-07-29
 **/
@Slf4j
@RunWith(SpringRunner.class)
@SpringBootTest
public class LoginServiceTest {

    @Resource
    private ILoginService loginService;

    @Test
    public void testCreateQrCodeTicket() throws Exception {
        String ticket = loginService.createQrCodeTicket();
        log.info("用户登录凭证 ticket:{}", ticket);
    }
}


